<?php    namespace app\admin\validate;    use think\Validate;    class Admin extends Validate{        /** 验证规则         * @var array         */        protected $rule =   [                'username|用户名'      =>  'require|max:18|min:3|token',                'password|密码'        =>  'require|max:18|min:3',                'tpassword|确认密码'    =>  'require|confirm:password',                'captcha|验证码'        =>  'require|min:5|max:5|captcha',                'email'             =>  'require|min:5|email'        ];        /** 提示消息         * @var array         */        protected $message  =   [        ];        /** 验证场景         * @var array         */        protected $scene  = [            'login'     =>  'username,password,captcha',            'create'    =>  'username,password,tpassword,email',            'edit'      =>  'username,email',            'password'  =>  'password,tpassword'        ];    }